import Vue from 'vue';
import Router from 'vue-router'
import list0 from '@/pages/list0'
import list1 from '@/pages/list1'
import list2 from '@/pages/list2'
import list3 from '@/pages/list3'
import list4 from '@/pages/list4'
import list5 from '@/pages/list5'
import list6 from '@/pages/list6'
import list7 from '@/pages/list7'
import list8 from '@/pages/list8'
import list9 from '@/pages/list9'
import order from '@/pages/order'
import own from '@/pages/own'
import detail from '@/pages/detail'
import pay from '@/pages/pay'
import buyed_order from '@/pages/buyed_order'
import addressList from '@/pages/addressList'
import addressEdit from '@/pages/addressEdit'
import success from '@/pages/success'
import register from '@/pages/register'
import login from '@/pages/login'
Vue.use(Router);

export default new Router({
    base: '/',
    mode: 'history',
    routes: [
        {
            path: '/',
            name: list0,
            component: list0
        }, {
            path: '/list0',
            // name: list0,
            component: list0
        }, {
            path: '/list1',
            // name: list1,
            component: list1,
            meta: {
                active: 1
            }
        }, {
            path: '/list2',
            // name: list2,
            component: list2,
            meta: {
                active: 2
            }
        }, {
            path: '/list3',
            // name: list3,
            component: list3,
            meta: {
                active: 3
            }
        }, {
            path: '/list4',
            // name: list4,
            component: list4,
            meta: {
                active: 4
            }
        }, {
            path: '/list5',
            // name: list5,
            component: list5,
            meta: {
                active: 5
            }
        }, {
            path: '/list6',
            // name: list6,
            component: list6,
            meta: {
                active: 6
            }
        }, {
            path: '/list7',
            // name: list7,
            component: list7,
            meta: {
                active: 7
            }
        }, {
            path: '/list8',
            // name: list8,
            component: list8,
            meta: {
                active: 8
            }
        }, {
            path: '/list9',
            // name: list9,
            component: list9,
            meta: {
                active: 9
            }
        },
        {
            path: '/order',
            // name: list9,
            component: order,
        }, {
            path: '/own',
            // name: list9,
            component: own,
        }, {
            path: '/detail',
            component: detail
        },
        {
            path: '/pay',
            component: pay
        }, {
            path: '/buyed_order',
            component: buyed_order
        }, {
            path: '/addressList',
            component: addressList
        }, {
            path: '/addressEdit',
            component: addressEdit
        },
        {
            path: '/success',
            component: success
        }, {
            path: '/register',
            component: register
        },{
            path: '/login',
            component: login
        }



    ]
});